import { request } from "@/utils/request";

// 未结报表
export function reqReportUnsettled(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/unsettled",
    method: "get",
    params
  });
}

// 用户报表
export function reqReportUser(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/user",
    method: "get",
    params
  });
}

// 用户报表-详情
export function reqReportUserOrderDetail(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/user/orderDetail",
    method: "get",
    params
  });
}

// 分类报表
export function reqReportClassify(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/game/classify",
    method: "get",
    params
  });
}

// 代理返佣
export function reqAgentRebateList(params: Record<string, any>) {
  return request({
    url: "/roomManage/agent/rebate/list",
    method: "get",
    params
  });
}

// 代理返佣-旗下详情
export function reqAgentRebateDetail(params: Record<string, any>) {
  return request({
    url: "/roomManage/agent/rebate/subUserDetail",
    method: "get",
    params
  });
}

// 代理返佣-一键返佣
export function reqAgentRebateGrant(UserId: number) {
  return request({
    url: "/roomManage/agent/rebate/grant",
    method: "post",
    data: {
      UserId
    }
  });
}

// 代理返佣-批量返佣
export function reqAgentRebateGrantBatch() {
  return request({
    url: "/roomManage/agent/rebate/grantBatch",
    method: "post"
  });
}

// 代理返佣-拒绝
export function reqAgentRebateReject(UserId: number) {
  return request({
    url: "/roomManage/agent/rebate/reject",
    method: "post",
    data: {
      UserId
    }
  });
}

// 代理返佣-删除数据
export function reqAgentRebateDel(data: Record<string, any>) {
  return request({
    url: "/roomManage/agent/rebate/del",
    method: "post",
    data
  });
}

// 佣金报表
export function reqReportAgentRebate(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/agent/rebate",
    method: "get",
    params
  });
}

// 回水报表
export function reqReportRebate(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/rebate",
    method: "get",
    params
  });
}

// 回水报表-详情
export function reqReportRebateDetail(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/rebateDetail",
    method: "get",
    params
  });
}

// 红包报表
export function reqReportHongbao(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/hongbao",
    method: "get",
    params
  });
}

// 红包报表-领取详情
export function reqReportHongbaoDetail(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/hongbaoDetail",
    method: "get",
    params
  });
}

// 用户登录日志
export function reqUserLoginLog(params: Record<string, any>) {
  return request({
    url: "/roomManage/user/login/log/list",
    method: "get",
    params
  });
}

// 用户操作日志
export function reqUserLog(params: Record<string, any>) {
  return request({
    url: "/roomManage/user/log/list",
    method: "get",
    params
  });
}

// 总报表
export function reqReportCoinRecord(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/coinRecord",
    method: "get",
    params
  });
}

// 告警报表
export function reqReportNotice(params: Record<string, any>) {
  return request({
    url: "/roomManage/report/notice",
    method: "get",
    params
  });
}
